//
//  ViewController.m
//  PlaceholderView
//
//  Created by Burn on 2019/4/9.
//  Copyright © 2019 menksoft. All rights reserved.
//

#import "ViewController.h"
#import "PlaceholderView.h"
#import "LoadingViewForOC.h"
@interface ViewController ()
@property(strong,nonatomic) PlaceholderView *p;

@end

@implementation ViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.p = [[PlaceholderView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 400)];
    self.p.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:self.p];
    
//    self.loding = [LoadingViewForOC showLoadingWith:self.view];
    
}
- (IBAction)jiazai:(UIButton *)sender {
    [self.p holder];
    
}
- (IBAction)jijiang:(UIButton *)sender {
    [self.p wait];
}
- (IBAction)chongbo:(UIButton *)sender {
    [self.p replay];
}
- (IBAction)checkInternet:(UIButton *)sender {
    [self.p checkInternet];
}

- (IBAction)liulang:(id)sender {
    [self.p phoneData];
}
- (IBAction)inetnetError:(UIButton *)sender {
    [self.p interNetError];
}


@end
